<?php
/**
 * 作者：云喵软件开发工作室
 * 官网：https://www.meoyun.com
 */

namespace app\model;

class DiscussModel extends BaseModel
{
    protected $table = 'discuss';

    protected $casts = [
        'created_at' => 'timestamp',
        'updated_at' => 'timestamp',
        'media' => 'json'
    ];

    public function user()
    {
        return $this->belongsTo(UsersModel::class, 'user_id');
    }

}